import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import SlideVerify from 'vue-monoplasty-slide-verify' // 拼图验证码
import Confirm from '@/store/confirm/index'

Vue.use(SlideVerify)

const originalPush = VueRouter.prototype.push;
VueRouter.prototype.push = function(location) {
  return originalPush.call(this, location).catch(err => {})
};
Vue.config.productionTip = false

Vue.prototype.imgBaseUrl = 'https://sc.wolfcode.cn'
Vue.prototype.confirm = Confirm

// 引入初始化样式
import 'reset-css'
import '@/assets/css/public.less'
import VueRouter from 'vue-router'

new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
